#ifndef DECODER_H
#define DECODER_H

#include <stdio.h>
#include <string.h>
#include <stdlib.h>


typedef struct _entry
{
    unsigned char* ptr;
    unsigned int length;
} entry;


void decode(const char *inputfile, const char *outputfile);
void init_dict();
void show_dict();
void add_dict(int prevcode, unsigned char);
void print(entry, FILE* );
entry get_entry(int prevcode, int currcode);
void print_error(char* );
entry get_item(int index);

#endif